﻿///***************************************************************
/// 시  스  템 : Updms.Mst.Dac
/// 단위시스템 : MST
/// 계      층 : Data Access Layer
/// 프로그램명 : Mst_Dac_UPDMS_MST_DATE
/// 파  일  명 : Mst_Dac_UPDMS_MST_DATE.cs
/// 설      명 : 휴일관리
///***************************************************************
/// 수정ID 일자       이름     내용
///---------------------------------------------------------------
/// CH001  2008-10-30 송시명   최초 작성
///***************************************************************
using System.Data;
using System.Data.SqlClient;
using System.EnterpriseServices;
using System.Runtime.InteropServices;

using SMFramework.Data;

namespace Updms.Mst.Dac
{
	[ComVisible(true)]
	[Transaction(TransactionOption.Supported)]
	[JustInTimeActivation(true)]
	public class Mst_Dac_UPDMS_MST_DATE : Base.AppFramework.DacBase
	{
		public Mst_Dac_UPDMS_MST_DATE()
		{
		}

		#region NT [SelectProcess]
		
		[AutoComplete]
		public DataSet SelectProcess(DataPack lo_dp)
		{
			string strSql = "usp_UPDMS_MST_DATE_Select";

			SqlParameter[] paramArray = lo_dp.ToSqlParameters();

			DataSet ds = new DataSet();
			return _agent.Fill(strSql, "UPDMS_MST_DATE", ds, paramArray, CommandType.StoredProcedure);
		}
		
		#endregion

		#region RT [SetHolidayYn]

		[AutoComplete]
		public int SetHolidayYn(DataPack lo_dp)
		{
			string strSql = "usp_UPDMS_MST_DATE_Set_Holiday_Yn";

			SqlParameter[] paramArray = lo_dp.ToSqlParameters();
			return _agent.ExecuteNonQuery(strSql, paramArray, CommandType.StoredProcedure);
		}
		
		#endregion
		
	}
}
